package org.sg20.pagerank.pagerankviewer;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class PageRankViewerReducer extends Reducer<DecFloatWritable, Text, DecFloatWritable, Text>{
    @Override
    protected void reduce(DecFloatWritable key, Iterable<Text> values, Reducer<DecFloatWritable, Text, DecFloatWritable, Text>.Context context) throws IOException, InterruptedException {
        for(Text value: values) {
            context.write(key, value);
        }
    }
}
